#include "GameManager.h"
#include "UnitTest.h"

int GameMode(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd)
{
	CGameManager app(hInstance, L"WndClassName", L"Game Demo", D3DDEVTYPE_HAL, D3DCREATE_HARDWARE_VERTEXPROCESSING);

	if(app.InitApp())
		return app.Run();
	
	return 0;
}

int TestMode(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd)
{
	CUnitTest app(hInstance, L"WndClassName", L"Test Demo", D3DDEVTYPE_HAL, D3DCREATE_HARDWARE_VERTEXPROCESSING);

	if(app.InitApp())
		return app.Run();
	
	return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd)
{
	//return GameMode(hInstance, prevInstance, cmdLine, showCmd);
	return TestMode(hInstance, prevInstance, cmdLine, showCmd);
}

